import { AlbumListComponent } from "./../album-list.component";
import { Component, OnInit, Inject } from "@angular/core";

import {
  MatDialog,
  MatDialogRef,
  MAT_DIALOG_DATA
} from "@angular/material/dialog";
import { ImgStoreData } from 'src/storage/.config/store.type';
@Component({
  selector: "app-img-overlay",
  templateUrl: "./img-overlay.component.html",
  styleUrls: ["./img-overlay.component.scss"]
})
export class ImgOverlayComponent implements OnInit {
  constructor(
    public dialogRef: MatDialogRef<AlbumListComponent>,
    @Inject(MAT_DIALOG_DATA) public data: { imgSrc: string,  storage: ImgStoreData["data"][0] }
  ) {}

  ngOnInit(): void {}

  closeOverlay(): void {
    this.dialogRef.close();
  }
}
